BASIC Keywords

Abs, After, And, Before, Case, Const, Data, Default, Delete, Dim, Each, Else, Else If, ElseIf, End Function, End If, End Select, End Type, EndIf, Exit, False, Field, First, Float, For, Forever, Function, Global, Gosub, Goto, If, Include, Insert, Int, Last, Local, Mod, New, Next, Not, Null, Or, Pi, Read, Repeat, Restore, Return, Sar, Select, Sgn, Shl, Shr, Step, Str, Then, To, True, Type, Until, Wend, While, Xor

Library Commands

DebugLog text$
FreeTimer timer
WaitTimer ( timer )
CreateTimer ( hertz )
CommandLine$ ( )
MilliSecs ( )
Delay millisecs
ExecFile command$
RuntimeError message$
AppTitle title$
Stop
End
RuntimeStats
NetMsgData$ ( )
NetMsgTo ( )
NetMsgFrom ( )
NetMsgType ( )
RecvNetMsg ( )
SendNetMsg ( type,msg$,from_player[,to_player][,reliable] )
NetPlayerLocal ( player )
NetPlayerName$ ( player )
DeleteNetPlayer player
CreateNetPlayer ( name$ )
StopNetGame
JoinNetGame ( game_name$,ip_address$ )
HostNetGame ( game_name$ )
StartNetGame ( )
Locate x,y
Input$ ( [prompt$] )
Print [string$]
Write string$
ImageRectCollide ( image,x,y,frame,rect_x,rect_y,rect_width,rect_height )
ImageRectOverlap ( image,x,y,rect_x,rect_y,rect_width,rect_height )
RectsOverlap ( x1,y1,width1,height1,x2,y2,width2,height2 )
ImagesCollide ( image1,x1,y1,frame1,image2,x2,y2,frame2 )
ImagesOverlap ( image1,x1,y1,image2,x2,y2 )
TFormFilter enable
TFormImage image,a#,b#,c#,d#
RotateImage image,angle#
ResizeImage image,width#,height#
ScaleImage image,xscale#,yscale#
ImageYHandle ( image )
ImageXHandle ( image )
ImageHeight ( image )
ImageWidth ( image )
AutoMidHandle enable
MidHandle image
HandleImage image,x,y
MaskImage image,red,green,blue
DrawBlockRect image,x,y,rect_x,rect_y,rect_width,rect_height[,frame]
DrawImageRect image,x,y,rect_x,rect_y,rect_width,rect_height[,frame]
TileBlock image[,x][,y][,frame]
TileImage image[,x][,y][,frame]
DrawBlock image,x,y[,frame]
DrawImage image,x,y[,frame]
ImageBuffer ( image[,frame] )
GrabImage image,x,y[,frame]
SaveImage ( image,bmpfile$[,frame] )
FreeImage image
LoadAnimImage ( bmpfile$,cellwidth,cellheight,first,count )
CreateImage ( width,height[,frames] )
CopyImage ( image )
LoadImage ( bmpfile$ )
StringHeight ( string$ )
StringWidth ( string$ )
FontHeight ( )
FontWidth ( )
FreeFont font
LoadFont ( fontname$[,height][,bold][,italic][,underline] )
Text x,y,text$[,centre_x][,centre_y]
Line x1,y1,x2,y2
Oval x,y,width,height[,solid]
Rect x,y,width,height[,solid]
Plot x,y
Cls
SetFont font
ClsColor red,green,blue
ColorBlue ( )
ColorGreen ( )
ColorRed ( )
GetColor x,y
Color red,green,blue
Viewport x,y,width,height
Origin x,y
CopyPixelFast src_x,src_y,src_buffer,dest_x,dest_y[,dest_buffer]
CopyPixel src_x,src_y,src_buffer,dest_x,dest_y[,dest_buffer]
WritePixelFast x,y,argb[,buffer]
ReadPixelFast ( x,y[,buffer] )
WritePixel x,y,argb[,buffer]
ReadPixel ( x,y[,buffer] )
UnlockBuffer [buffer]
LockBuffer [buffer]
SaveBuffer ( buffer,bmpfile$ )
LoadBuffer ( buffer,bmpfile$ )
GraphicsBuffer ( )
SetBuffer buffer
GraphicsDepth ( )
GraphicsHeight ( )
GraphicsWidth ( )
Flip [vwait]
VWait [frames]
ScanLine ( )
BackBuffer ( )
FrontBuffer ( )
EndGraphics
Graphics width,height[,depth][,mode]
TotalVidMem ( )
AvailVidMem ( )
GfxModeExists ( width,height,depth )
FindGfxMode ( width,height,depth )
GfxModeDepth ( mode )
GfxModeHeight ( mode )
GfxModeWidth ( mode )
CountGfxModes ( )
SetGfxDriver driver
GfxDriverName$ ( driver )
CountGfxDrivers ( )
ChannelPlaying ( channel )
ChannelPan channel,pan#
ChannelVolume channel,volume#
ChannelPitch channel,pitch
ResumeChannel channel
PauseChannel channel
StopChannel channel
PlayCDTrack ( track[,mode] )
PlayMusic ( midifile$ )
PlaySound ( sound )
SoundPan sound,pan#
SoundVolume sound,volume#
SoundPitch sound,pitch
LoopSound sound
FreeSound sound
LoadSound ( filename$ )
FlushJoy
JoyZDir ( [port] )
JoyYDir ( [port] )
JoyXDir ( [port] )
JoyZ# ( [port] )
JoyY# ( [port] )
JoyX# ( [port] )
JoyWait ( [port] )
WaitJoy ( [port] )
GetJoy ( [port] )
JoyHit ( button[,port] )
JoyDown ( button[,port] )
JoyType ( [port] )
MoveMouse x,y
FlushMouse
MouseYSpeed ( )
MouseXSpeed ( )
MouseY ( )
MouseX ( )
MouseWait ( )
WaitMouse ( )
GetMouse ( )
MouseHit ( button )
MouseDown ( button )
FlushKeys
WaitKey ( )
GetKey ( )
KeyHit ( key )
KeyDown ( key )
WriteBytes bank,file,offset,count
ReadBytes bank,file,offset,count
PokeFloat bank,offset,value#
PokeInt bank,offset,value
PokeShort bank,offset,value
PokeByte bank,offset,value
PeekFloat# ( bank,offset )
PeekInt ( bank,offset )
PeekShort ( bank,offset )
PeekByte ( bank,offset )
FreeBank bank
CreateBank ( size )
DeleteFile file$
CopyFile file$,to$
FileType ( file$ )
FileSize ( file$ )
DeleteDir dir$
CreateDir dir$
ChangeDir dir$
CurrentDir$ ( )
NextFile$ ( dir )
CloseDir dir
ReadDir ( dirname$ )
WriteString file,string$
WriteLine file,string$
WriteFloat file,float#
WriteInt file,int
WriteShort file,short
WriteByte file,byte
ReadString$ ( file )
ReadLine$ ( file )
ReadFloat# ( file )
ReadInt ( file )
ReadShort ( file )
ReadByte ( file )
SeekFile ( file,pos )
Eof ( file )
FilePos ( file )
CloseFile file
WriteFile ( filename$ )
ReadFile ( filename$ )
OpenFile ( filename$ )
CurrentTime$ ( )
CurrentDate$ ( )
Bin$ ( value )
Hex$ ( value )
Len ( string$ )
Asc ( string$ )
Chr$ ( ascii )
RSet$ ( string$,size )
LSet$ ( string$,size )
Trim$ ( string$ )
Lower$ ( string$ )
Upper$ ( string$ )
Mid$ ( string$,start[,count] )
Instr ( string$,find$[,from] )
Replace$ ( string$,from$,to$ )
Right$ ( string$,count )
Left$ ( string$,count )
String$ ( string$,repeat )
SeedRnd seed
Rand ( from[,to] )
Rnd# ( from#[,to#] )
Log10# ( float# )
Log# ( float# )
Exp# ( float# )
Ceil# ( float# )
Floor# ( float# )
Sqr# ( float# )
ATan2# ( floata#,floatb# )
ATan# ( float# )
ACos# ( float# )
ASin# ( float# )
Tan# ( degrees# )
Cos# ( degrees# )
Sin# ( degrees# )